package com.ruoyi.xzs.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 题库管理对象 x_question
 * 
 * @author li
 * @date 2023-03-08
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 1.单选题2.多选题3.判断题 4.填空题 5.简答题 */
    @Excel(name = "题型")
    private Long questionType;

    /** 题目总分 */
    @Excel(name = "题目总分")
    private Long score;

    /** 题目难度 */
    @Excel(name = "题目难度")
    private Long gradeLevel;

    /** 题干 */
    @Excel(name = "题干")
    private String questionStems;

    /** 解析 */
    @Excel(name = "解析")
    private String questionParse;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createTime;

    /** 选项A */
    @Excel(name = "选项A")
    private String checkA;

    /** 选项B */
    @Excel(name = "选项B")
    private String checkB;

    /** 选项C */
    @Excel(name = "选项C")
    private String checkC;

    /** 选项D */
    @Excel(name = "选项D")
    private String checkD;

    public String getCheckA() {
        return checkA;
    }

    public void setCheckA(String checkA) {
        this.checkA = checkA;
    }

    public String getCheckB() {
        return checkB;
    }

    public void setCheckB(String checkB) {
        this.checkB = checkB;
    }

    public String getCheckC() {
        return checkC;
    }

    public void setCheckC(String checkC) {
        this.checkC = checkC;
    }

    public String getCheckD() {
        return checkD;
    }

    public void setCheckD(String checkD) {
        this.checkD = checkD;
    }

    public String getQuestionParse() {
        return questionParse;
    }

    public void setQuestionParse(String questionParse) {
        this.questionParse = questionParse;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionType(Long questionType) 
    {
        this.questionType = questionType;
    }

    public Long getQuestionType() 
    {
        return questionType;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setGradeLevel(Long gradeLevel) 
    {
        this.gradeLevel = gradeLevel;
    }

    public Long getGradeLevel() 
    {
        return gradeLevel;
    }
    public void setQuestionStems(String questionStems) 
    {
        this.questionStems = questionStems;
    }

    public String getQuestionStems() 
    {
        return questionStems;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionType", getQuestionType())
            .append("score", getScore())
            .append("gradeLevel", getGradeLevel())
            .append("questionStems", getQuestionStems())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .toString();
    }
}
